# Maintainer: 

pkgname=perl-cpan-perl-releases
pkgver=5.20231025
pkgrel=1
pkgdesc='Mapping Perl releases on CPAN to the location of the tarballs'
arch=('any')
url="https://metacpan.org/release/CPAN-Perl-Releases"
license=('PerlArtistic' 'GPL')
depends=('perl')
options=('!emptydirs')
source=("https://search.cpan.org/CPAN/authors/id/B/BI/BINGOS/CPAN-Perl-Releases-$pkgver.tar.gz")
sha256sums=('3127923ec09b2f12f75705b952c89766e79d3a871915b317f0b8297564ceae75')

build() {
  cd CPAN-Perl-Releases-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd CPAN-Perl-Releases-$pkgver
  make test
}

package() {
  cd CPAN-Perl-Releases-$pkgver
  make DESTDIR="$pkgdir" install
}
